<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/jsp/taglibs.jsp"%>
<%@taglib uri="http://www.framework.com/taglib" prefix="frame"%>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script type="text/javascript" src="${ctx}/commons/js/uploadify/jquery.uploadify.min.js"></script>
<link type="text/css" href="${ctx}/commons/js/uploadify/uploadify.css" rel="stylesheet"/>
<style type="text/css">
	li{
		padding-top:8px;
	}
	.st{
		display:none;
	}
</style>
<script type="text/javascript">
	var requestUrl="http://${basePath}:${port}${ctx}/auction/business/input?projectId=${project.id}&r="+new Date().getTime();
</script>
<form name="addProjectsDataForm" id="addProjectsDataForm" method="post" action="${ctx}/auction/business/save" >
	<input type="hidden" name="id" id="projectIdHidden" value="${project.id}"/>
	<input type="hidden" name="budgetMenuData" id="budgetMenuData" value=""/>
	<table class="infoTable">
		<tbody>
		<tr>
			<td colspan="6" align="left" >项目基本信息:</td>
		</tr>
		<tr>
			<th align="right" width="15%">项目名称</th>
			<td width="35%">
				<input name="auctionName" style="width:180px;" maxlength="50" class="easyui-validatebox" prompt="" data-options="required:true,validType:['isNull','validProjName[\'${ctx }\']']" value="${project.auctionName}"/>
			</td>
			<th align="right" width="15%">项目类型</th>
			<td width="36%">
				<input name="catagoryId" id="catagoryId" class="easyui-combobox" prompt="" style="width:180px" data-options="required:true,valueField:'id',textField:'name',url:'${ctx}/business/projectmanage/getProjectTypes',editable:false" value="${project.catagoryId}"/>
			</td>
			<th align="right" width="15%">起拍价格(元)</th>
			<td colspan="1">
				<input id="startPrice" name="startPrice" style="width:180px;" maxlength="20" class="easyui-validatebox" prompt="" data-options="required:true,validType:['isNull','isNotZero','priceDecimal','isMaxPrice[\'${ctx }\']']" value="<fmt:formatNumber value="${project.startPrice}" type="currency" pattern="0.00#"/>"/>
			</td>

		</tr>
		<tr>
			<th class="key" cosplan="2">交易方式</th>
			<td>
				<input name="tradeType" readonly="readonly" class="easyui-combobox" prompt="" style="width:180px" data-options="required:true,valueField:'value',textField:'name',url:'${ctx}/business/projectmanage/getTradeType',editable:false" value="${project.tradeType==null?'J':project.tradeType}"/>
			</td>
			<th align="right" width="15%">履约保证金（元）</th>
			<td width="36%">
				<input name="executeDeposit" style="width:180px;" maxlength="50" class="easyui-validatebox" prompt="" data-options="required:true,validType:['isNull','priceDecimal']"  value="<fmt:formatNumber value="${project.executeDeposit}" type="currency" pattern="0.00#"/>" />
			</td>
			<th align="right" width="15%">保证金金额（元）</th>
			<td width="36%">
				<input name="deposit" style="width:180px;" maxlength="50" class="easyui-validatebox" prompt="" data-options="required:true,validType:['isNull','isNotZeroDeposit','priceDecimal']"  value="<fmt:formatNumber value="${project.deposit}" type="currency" pattern="0.00#"/>" />
			</td>
		</tr>
		<tr>
			<th class="key" >每轮加价（元）</th>
			  <td colspan="6">
				  <div style="display: inline-block"><span style="font-size: 15px;vertical-align: middle"> ① </span><input name="stepPrice1" style="width:50px;" maxlength="50" class="easyui-validatebox" data-options="required:true,validType:['isNull','isNotZero','priceDecimal']" value="<fmt:formatNumber value="${project.stepPrice1}" type="currency" pattern="0.00#"/>"/></div>
				  <div style="display: inline-block"><span style="font-size: 15px;vertical-align: middle"> ② </span><input name="stepPrice2" style="width:50px;" maxlength="50" class="easyui-validatebox" data-options="validType:['isNull','isNotZero','priceDecimal']" value="<fmt:formatNumber value="${project.stepPrice2}" type="currency" pattern="0.00#"/>"/></div>
				  <div style="display: inline-block"><span style="font-size: 15px;vertical-align: middle"> ③ </span><input name="stepPrice3" style="width:50px;" maxlength="50" class="easyui-validatebox" data-options="validType:['isNull','isNotZero','priceDecimal']" value="<fmt:formatNumber value="${project.stepPrice3}" type="currency" pattern="0.00#"/>"/></div>
				  <div style="display: inline-block"><span style="font-size: 15px;vertical-align: middle"> ④ </span><input name="stepPrice4" style="width:50px;" maxlength="50" class="easyui-validatebox" data-options="validType:['isNull','isNotZero','priceDecimal']" value="<fmt:formatNumber value="${project.stepPrice4}" type="currency" pattern="0.00#"/>"/></div>
				  <div style="display: inline-block"><span style="font-size: 15px;vertical-align: middle"> ⑤ </span><input name="stepPrice5" style="width:50px;" maxlength="50" class="easyui-validatebox" data-options="validType:['isNull','isNotZero','priceDecimal']" value="<fmt:formatNumber value="${project.stepPrice5}" type="currency" pattern="0.00#"/>"/></div>
				  <div style="display: inline-block"><span style="font-size: 15px;vertical-align: middle"> ⑥ </span><input name="stepPrice6" style="width:50px;" maxlength="50" class="easyui-validatebox" data-options="validType:['isNull','isNotZero','priceDecimal']" value="<fmt:formatNumber value="${project.stepPrice6}" type="currency" pattern="0.00#"/>"/></div>
				  <div style="display: inline-block"><span style="font-size: 15px;vertical-align: middle"> ⑦ </span><input name="stepPrice7" style="width:50px;" maxlength="50" class="easyui-validatebox" data-options="validType:['isNull','isNotZero','priceDecimal']" value="<fmt:formatNumber value="${project.stepPrice7}" type="currency" pattern="0.00#"/>"/></div>
				  <div style="display: inline-block"><span style="font-size: 15px;vertical-align: middle"> ⑧ </span><input name="stepPrice8" style="width:50px;" maxlength="50" class="easyui-validatebox" data-options="validType:['isNull','isNotZero','priceDecimal']" value="<fmt:formatNumber value="${project.stepPrice8}" type="currency" pattern="0.00#"/>"/></div>
			  </td>
		</tr>
		<tr>
			<th class="key" cosplan="2">保证金是否托管</th>
			<td>是 <input type="radio"  name="trusteeship" value="true"  id="trusteeship" ${project.trusteeship==null || project.trusteeship==true?"checked":"" }/>
				否 <input type="radio" name="trusteeship" value="false" id="trusteeship1" ${project.trusteeship==false?"checked":"" } /></td>
			</td>
			<th class="key" cosplan="2">是否需要报名</th>
			<td>是 <input type="radio"  name="entryAble" value="true"  id="entryAble"  ${project.trusteeship==null || project.entryAble==true?"checked":"" }/>
				否 <input type="radio" name="entryAble" value="false" id="entryAble1"   ${project.entryAble==false?"checked":"" }/></td>
			</td>
		</tr>
        <%--<tr>--%>
			<%--<th class="key" cosplan="2">审核时间：</th>--%>
			<%--<td colspan="5" >--%>
				<%--<input type="text" class="easyui-datetimebox" name="auditTime" id="auditTime" value="${project.auditTime}"/>--%>
			<%--</td>--%>
		<%--</tr>--%>

		<%--<tr id="apply" class="${project.entryAble==null || project.entryAble==true?"":"st"}">--%>
			<%--<th class="key" cosplan="2">报名时间：</th>--%>
			<%--<td colspan="5" >--%>
				<%--<input type="text" class="easyui-datetimebox" name="entryStart" id="entryStart" value="${project.entryStart}" />--%>
				 <%--至--%>
				<%--<input type="text" class="easyui-datetimebox"  name="entryEnd" id="entryEnd" value="${project.entryEnd}" />--%>
			<%--</td>--%>
		<%--</tr>--%>
		<tr>
			<th class="key" >竞拍时间：</th>
			<td colspan="5" id="bidStartDateTr"><input type="text" class="easyui-datebox"   name="bidStartDateStr" id="bidStartDateStr" value="${project.auctionStart }" data-options="required:true,validType:['isWorkDayAuction[\'${ctx }\',\'${auctionTimeDay}\']']"/> 日
				<select name='bidStartTimeStr' id="bidStartTimeStr" class="easyui-combobox" style="width:50px" data-options="required:true,validType:[<c:if test="${dataset.bidOpeningInTheMonAm==true}"></c:if><c:if test="${dataset.bidOpeningInTheMonAm==false}">'isMonAm'</c:if>]">
					<option value="" ></option>
					<option value='09' ${project.auctionStart.getHours()==09?"selected='selected'":""}>09</option>
					<option value='15' ${project.auctionStart.getHours()==15?"selected='selected'":""}>15</option>
				</select> 点 <font color="red">注：非工作日和周一上午不允许设置项目开标</font>
			</td>
		</tr>
		<%--<tr>--%>
		<%--<th align="right" width="15%">付款方式</th>--%>
		<%--<td width="35%" colspan="6">--%>
		<%--<textarea rows="3" cols="80" id="payType" name="payType" data-options="required:true,validType:['isNull']"--%>
		<%--oninput="checkLength('payTypeRemarkError',2000,'payType')" onpropertychange="checkLength('payTypeRemarkError',2000,'payType')" onkeyup="checkLength('payTypeRemarkError',2000,'payType')">${project.payType}</textarea>--%>
		<%--<font color="red"><br />注：2000个字符以内，还可以输入<span class="input_font" id="payTypeRemarkError">2000</span>个字符</font>--%>
		<%--</td>--%>
		<%--</tr>--%>
		<tr>
			<th align="right" width="15%">交易内容</th>
			<td colspan="6">
				<textarea rows="3" cols="80" id="tradeContent" name="tradeContent" data-options="required:true"
						  oninput="checkLength('buyContentRemarkError',2000,'TradeContent')" onpropertychange="checkLength('buyContentRemarkError',2000,'tradeContent')" onkeyup="checkLength('buyContentRemarkError',2000,'tradeContent')">${project.tradeContent}</textarea>
				<font color="red"><br />注：2000个字符以内，还可以输入<span class="input_font" id="buyContentRemarkError">2000</span>个字符</font>
			</td>
		</tr>
		<tr>
			<th align="right" width="15%">竞拍人资格要求</th>
			<td colspan="6">
				<textarea rows="3" cols="80" id="bidderRequire" name="bidderRequire" data-options="required:true"
						  oninput="checkLength('bidderRequireError',2000,'bidderRequire')" onpropertychange="checkLength('bidderRequireError',200,'bidderRequire')" onkeyup="checkLength('bidderRequireError',2000,'bidderRequire')">${project.bidderRequire}</textarea>
				<font color="red"><br />注：2000个字符以内，还可以输入<span class="input_font" id="bidderRequireError">2000</span>个字符</font>
			</td>
		</tr>

		<tr class="${project.catagoryId=="540d5cef8b0004f000000056a29c3a03"?"":"st" }" id="otherRequire_rent">
			<th align="right" width="15%">对竞拍人特别要求</th>
			<td colspan="6">
				<textarea rows="3" cols="80"  name="otherRequireRent" id="otherRequireRent" data-options="required:true"
						  oninput="checkLength('otherRequireRentError',2000,'otherRequireRent')" onpropertychange="checkLength('otherRequireRentError',2000,'otherRequireRent')" onkeyup="checkLength('otherRequireRentError',2000,'otherRequireRent')">${project.otherRequireRent}</textarea>
				<font color="red"><br />注：2000个字符以内，还可以输入<span class="input_font" id="otherRequireRentError" >2000</span>个字符</font>
			</td>
		</tr>
		<tr  class="${project.catagoryId=="540d5cef8b0004f000000056a29c3a03"?"":"st"  }" id="otherRequire_rent2">
			<th align="right" width="15%">租金支付要求</th>
			<td colspan="6">
				<textarea rows="3" cols="80" id="charterMoneyRequire" name="charterMoneyRequire" data-options="required:true"
						  oninput="checkLength('charterMoneyRequireError',2000,'charterMoneyRequire')" onpropertychange="checkLength('charterMoneyRequireError',2000,'charterMoneyRequire')" onkeyup="checkLength('charterMoneyRequireError',2000,'charterMoneyRequire')">${project.charterMoneyRequire}</textarea>
				<font color="red"><br />注：2000个字符以内，还可以输入<span class="input_font" id="charterMoneyRequireError">2000</span>个字符</font>
			</td>
		</tr>
		<tr class="${project.catagoryId=="540d5cef8b0004f000000056a29c3a02"?"":"st" }" id="otherRequire_stuff">
			<th th align="right" width="15%">对标的特别要求</th>
			<td colspan="6">
				<textarea rows="3" cols="80"  name="otherRequireTransfer" id="otherRequireTransfer" data-options="required:true"
						  oninput="checkLength('otherRequireTransferError',2000,'otherRequireTransfer')" onpropertychange="checkLength('otherRequireTransferError',2000,'otherRequireTransfer')" onkeyup="checkLength('otherRequireTransferError',2000,'otherRequireTransfer')">${project.otherRequireTransfer}</textarea>
				<font color="red"><br />注：2000个字符以内，还可以输入<span class="input_font" id="otherRequireTransferError" >2000</span>个字符</font>
			</td>
		</tr>
		<tr>
			<th align="right" width="15%">竞拍人（企业）需要上传资料</th>
			<td colspan="6">
				<textarea rows="3" wrap="physical" cols="80" id="companyUploadFile" name="companyUploadFile" data-options="required:true"
						  oninput="checkLength('companyUploadFileError',2000,'companyUploadFile')" onpropertychange="checkLength('companyUploadFileError',2000,'companyUploadFile')" onkeyup="checkLength('companyUploadFileError',2000,'companyUploadFile')">${project.companyUploadFile}</textarea>
				<font color="red"><br />注：2000个字符以内，还可以输入<span class="input_font" id="companyUploadFileError" >2000</span>个字符</font>
			</td>
		</tr>
		<tr>
			<th align="right" width="15%">竞拍人（自然人）需要上传资料</th>
			<td colspan="6">
				<textarea rows="3" wrap="physical" cols="80" id="naturalUploadFile" name="naturalUploadFile" data-options="required:true"
						  oninput="checkLength('naturalUploadFileError',2000,'naturalUploadFile')" onpropertychange="checkLength('naturalUploadFileError',2000,'naturalUploadFile')" onkeyup="checkLength('naturalUploadFileError',2000,'naturalUploadFile')">${project.naturalUploadFile}</textarea>
				<font color="red"><br />注：2000个字符以内，还可以输入<span class="input_font" id="naturalUploadFileError" >2000</span>个字符</font>
			</td>
		</tr>
		<tr>
			<td colspan="6" align="left" >产权单位信息:</td>
		</tr>
		<tr>
			<th align="right" width="15%">产权单位</th>
			<td width="35%">
				<input name="ownerName"  style="width:180px;" class="easyui-validatebox" prompt=""  value="${project.ownerName}" data-options="required:true,validType:['isNull']"/>
			</td>
			<th align="right" width="15%">产权单位社会信用代码</th>
			<td width="36%">
				<input name="organizationCodeOwner"  style="width:180px;" class="easyui-validatebox" data-options="required:true"  value="${project.organizationCodeOwner}"/>
			</td>
			<th align="right" width="15%">单位性质</th>
			<td width="36%">
				<select id="companyProperty" class="easyui-combobox" name="companyProperty" style="width:150px;">
					<option value="行政机关" ${project.companyProperty=="行政机关"?"selected='selected'":""}>行政机关</option>
					<option value="事业单位" ${project.companyProperty=="事业单位"?"selected='selected'":""}>事业单位</option>
					<option value="3" ${project.companyProperty=="3"?"selected='selected'":""}>国有企业</option>
                    <option value="4" ${project.companyProperty=="4"?"selected='selected'":""}>集体企业</option>
					<option value="5" ${project.companyProperty=="5"?"selected='selected'":""}>村（居）委员会</option>
					<option value="6" ${project.companyProperty=="6"?"selected='selected'":""}>其他</option>
			    </select>
			</td>

		</tr>
		<tr>
			<th align="right" width="15%">分管领导</th>
			<td width="35%">
				<input name="manageLeader" style="width:180px;" class="easyui-validatebox" prompt="" data-options="required:true,validType:['isNull']" value="${project.manageLeader}"/>
			</td>
			<th align="right" width="15%">分管领导联系电话</th>
			<td width="35%">
				<input name="leaderTel" style="width:180px;" class="easyui-validatebox" prompt="" data-options="required:true,validType:['phone']" value="${project.leaderTel}"/>
			</td>
            <th align="right" width="15%">产权单位地址</th>
			<td width="35%">
				<input name="ownerAddress" style="width:180px;" class="easyui-validatebox" prompt="" data-options="required:true,validType:['isNull']" value="${project.ownerAddress}"/>
			</td>
		</tr>
		<tr>
			<th align="right" width="15%">经办人</th>
			<td width="35%">
				<input name="operater" style="width:180px;" class="easyui-validatebox" prompt="" data-options="required:true,validType:['isNull']" value="${project.operater}"/>
			</td>
			<th align="right" width="15%">经办人联系电话</th>
			<td width="35%">
				<input name="operaterTel" style="width:180px;" class="easyui-validatebox" prompt="" data-options="required:true,validType:['phone']" value="${project.operaterTel}"/>
			</td>
			<th align="right" width="15%">资产性质</th>
			<td width="36%">
				<select id="assetProperty" class="easyui-combobox" name="assetProperty" style="width:150px;">
					<option value="1" ${project.assetProperty=="1"?"selected='selected'":""}>国有</option>
					<option value="2" ${project.assetProperty=="2"?"selected='selected'":""}>集体</option>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="6" align="left" >委托单位信息:</td>
		</tr>
		<tr>
			<th align="right" width="15%">委托单位</th>
			<td width="35%">
				<input name="agentName" readonly="readonly" style="width:180px;" class="easyui-validatebox" prompt=""  value="${user.loginName}" data-options="required:true"/>
			</td>
			<th align="right" width="15%">委托单位社会信用代码</th>
			<td width="36%">
				<input name="organizationCodeAgent" id="organizationCodeAgent" style="width:180px;" class="easyui-validatebox" data-options="required:true"  value="${project.organizationCodeAgent}"/>
			</td>
			<th align="right" width="15%">委托单位联系电话</th>
			<td width="35%">
				<input name="agentTel" style="width:180px;" class="easyui-validatebox" prompt="" data-options="required:true,validType:['phone']" value="${project.agentTel}"/>
			</td>
		</tr>
		<tr>
			<th class="key" cosplan="2">是否首次交易</th>
			<td>是 <input type="radio"  name="isFirst" value="true" ${project.isFirst==null || project.isFirst==true?"checked":"" } id="isFirst1" />
				否 <input type="radio" name="isFirst" value="false" id="isFirst2" ${project.isFirst==false?"checked":"" } /></td>
			</td>
		</tr>
		<tr>
			<td colspan="6" align="left" >相关附件上传:</td>
		</tr>

		<tr>
			<th align="right" width="15%">资产交易申报表</th>
			<td style="border-right: none" width="36%">
				<div id="fileQueue1" class="fileQueue" style="margin: 10px 0px 0px 10px;float: left">
					<input type="file" name="uploadify" id="otherUpload1"  class="upload"/>
					<a class="easyui-linkbutton" href="../file_resource/资产交易申报表.docx" target="_blank" >资产交易申报表</a>
					<a href="javascript:void(0);" onclick="" id="tip1" class="easyui-linkbutton" iconCls="icon-help" plain="true" title=""></a>
					<p style="color: #aaaaaa;width: auto">
						1、按住Ctrl可选择多个文件上传;<br/>
						2、可上传*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws类型文件<br/>
					</p>
				</div>
			</td>
			<td style="border-left: none" colspan="2">
				<c:forEach items="${resList}" var="res">
					<c:if test="${res.functionFlog==2}">
						<div><a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName}</a> <span style="cursor: pointer;" onclick="deleteFile(this,'${res.id}');"><img src="${ctx }/commons/themes/icons/cancel.png"/></span></div>
					</c:if>
				</c:forEach>
			</td>
		</tr>
		<tr>
			<th align="right" width="15%">内部决议（已备案）证明</th>
			<td style="border-right: none" width="36%">
				<div id="fileQueue2" class="fileQueue" style="margin: 10px 0px 0px 10px;float: left">
					<input type="file" name="uploadify" id="otherUpload2"  class="upload"/>
					<a href="javascript:void(0);" onclick="" id="tip2" class="easyui-linkbutton" iconCls="icon-help" plain="true" title="（1）行政事业单位：领导班子会议集体研究决定，经主管部门审核。（2）国有及国有控股企业：领导班子会议集体研究决定。（3）村（居）集体企业：出租单位须提供经“四议两公开”决策程序审议通过后证明资料，经乡镇（街道）审批。"></a>
					<p style="color: #aaaaaa;width: auto">
						1、按住Ctrl可选择多个文件上传;<br/>
						2、可上传*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws类型文件<br/>
					</p>
				</div>
			</td>
			<td style="border-left: none" colspan="2">
				<c:forEach items="${resList}" var="res">
					<c:if test="${res.functionFlog==3}">
						<div><a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName}</a> <span style="cursor: pointer;" onclick="deleteFile(this,'${res.id}');"><img src="${ctx }/commons/themes/icons/cancel.png"/></span></div>
					</c:if>
				</c:forEach>
			</td>
		</tr>
		<tr class="${project.catagoryId=="540d5cef8b0004f000000056a29c3a03"?"":"st"  }" id="fileQueue3_tr">
			<th align="right" width="15%">租赁房屋的清空情况</th>
			<td style="border-right: none" width="36%">
				<div id="fileQueue3" class="fileQueue" style="margin: 10px 0px 0px 10px;float: left">
					<input type="file" name="uploadify" id="otherUpload3"  class="upload">
					<a class="easyui-linkbutton" href="../file_resource/附录A.doc" target="_blank" >详见附录A</a>
					<a class="easyui-linkbutton" href="../file_resource/附录B.doc" target="_blank">详见附录B</a><br/>
					<a href="javascript:void(0);" onclick="" id="tip3" class="easyui-linkbutton" iconCls="icon-help" plain="true" title="租赁房屋的清空情况。已清空的房屋租赁项目，须提供出租人承诺函（详见附录A）。未清空的房屋租赁项目，须提供出租人承诺函和出租人清场承诺函（详见附录B）"></a>
					<p style="color: #aaaaaa;width: auto">
						1、按住Ctrl可选择多个文件上传;<br/>
						2、可上传*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws类型文件<br/>
					</p>

				</div>
			</td>
			<td style="border-left: none" colspan="2">
				<c:forEach items="${resList}" var="res">
					<c:if test="${res.functionFlog==4}">
						<div><a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName}</a> <span style="cursor: pointer;" onclick="deleteFile(this,'${res.id}');"><img src="${ctx }/commons/themes/icons/cancel.png"/></span></div>
					</c:if>
				</c:forEach>
			</td>
		</tr>

		<tr class="${project.catagoryId=="540d5cef8b0004f000000056a29c3a03"?"":"st"  }" id="fileQueue4_tr">
			<th align="right" width="15%">解除协议书</th>
			<td style="border-right: none" width="36%">
				<div id="fileQueue4" class="fileQueue" style="margin: 10px 0px 0px 10px;float: left">
					<input type="file" name="uploadify" id="otherUpload4"  class="upload"/>
					<a href="javascript:void(0);" onclick="" id="tip4" class="easyui-linkbutton" iconCls="icon-help" plain="true" title="租赁资产原租赁合同提前解除申请重新招租的须提供经主管部门同意的解除协议书"></a>
					<p style="color: #aaaaaa;width: auto">
						1、按住Ctrl可选择多个文件上传;<br/>
						2、可上传*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws类型文件<br/>
					</p>
				</div>
			</td>
			<td style="border-left: none" colspan="2">
				<c:forEach items="${resList}" var="res">
					<c:if test="${res.functionFlog==5}">
						<div><a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName}</a> <span style="cursor: pointer;" onclick="deleteFile(this,'${res.id}');"><img src="${ctx }/commons/themes/icons/cancel.png"/></span></div>
					</c:if>
				</c:forEach>
			</td>
		</tr>
		<tr class="${project.catagoryId=="540d5cef8b0004f000000056a29c3a03"?"":"st"}" id="fileQueue9_tr">
			<th align="right" width="15%">租赁附件</th>
			<td style="border-right: none" width="36%">
				<div id="fileQueue9" class="fileQueue" style="margin: 10px 0px 0px 10px;float: left">
					<input type="file" name="uploadify" id="otherUpload9"  class="upload"/>
					<a class="easyui-linkbutton" href="../file_resource/租赁附件.docx" target="_blank" >租赁附件</a>
					<a href="javascript:void(0);" onclick="" id="tip9" class="easyui-linkbutton" iconCls="icon-help" plain="true" ></a>
					<p style="color: #aaaaaa;width: auto">
						1、按住Ctrl可选择多个文件上传;<br/>
						2、可上传*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws类型文件<br/>
					</p>
				</div>
			</td>
			<td style="border-left: none" colspan="2">
				<c:forEach items="${resList}" var="res">
					<c:if test="${res.functionFlog==10}">
						<div><a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName}</a> <span style="cursor: pointer;" onclick="deleteFile(this,'${res.id}');"><img src="${ctx }/commons/themes/icons/cancel.png"/></span></div>
					</c:if>
				</c:forEach>
			</td>
		</tr>

		<tr class="${project.catagoryId=="540d5cef8b0004f000000056a29c3a02"?"":"st" }" id="fileQueue5_tr">
			<th align="right" width="15%">资产转让/处置承诺函</th>
			<td style="border-right: none" width="36%">
				<div id="fileQueue5" class="fileQueue" style="margin: 10px 0px 0px 10px;float: left">
					<input type="file" name="uploadify" id="otherUpload5"  class="upload"/>
					<a class="easyui-linkbutton" href="../file_resource/附录C.doc" target="_blank" >详见附录C</a><br/>
					<a href="javascript:void(0);" onclick="" id="tip5" class="easyui-linkbutton" iconCls="icon-help" plain="true" title="资产转让/处置项目，需提供资产转让/处置承诺函（详见附录C）"></a>
					<p style="color: #aaaaaa;width: auto">
						1、按住Ctrl可选择多个文件上传;<br/>
						2、可上传*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws类型文件<br/>
					</p>
				</div>
			</td>
			<td style="border-left: none" colspan="2">
				<c:forEach items="${resList}" var="res">
					<c:if test="${res.functionFlog==7}">
						<div><a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName}</a> <span style="cursor: pointer;" onclick="deleteFile(this,'${res.id}');"><img src="${ctx }/commons/themes/icons/cancel.png"/></span></div>
					</c:if>
				</c:forEach>
			</td>
		</tr>

		<tr class="${project.catagoryId=="540d5cef8b0004f000000056a29c3a02"?"":"st" }" id="fileQueue6_tr">
			<th align="right" width="15%">评估报告</th>
			<td style="border-right: none" width="36%">
				<div id="fileQueue6" class="fileQueue" style="margin: 10px 0px 0px 10px;float: left">
					<input type="file" name="uploadify" id="otherUpload6"  class="upload"/>
					<a href="javascript:void(0);" onclick="" id="tip6" class="easyui-linkbutton" iconCls="icon-help" plain="true" title="转让/处置标的如需要进行资产评估的，转让方在评估结束后，将评估结果在转让方或产权单位公示5个工作日，并将评估结果报主管部门备案，提供经公示和备案的评估报告的证明。"></a>
					<p style="color: #aaaaaa;width: auto">
						1、按住Ctrl可选择多个文件上传;<br/>
						2、可上传*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws类型文件<br/>
					</p>
				</div>
			</td>
			<td style="border-left: none" colspan="2">
				<c:forEach items="${resList}" var="res">
					<c:if test="${res.functionFlog==8}">
						<div><a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName}</a> <span style="cursor: pointer;" onclick="deleteFile(this,'${res.id}');"><img src="${ctx }/commons/themes/icons/cancel.png"/></span></div>
					</c:if>
				</c:forEach>
			</td>
		</tr>


		<tr class="${project.catagoryId=="540d5cef8b0004f000000056a29c3a02"?"":"st"}" id="fileQueue8_tr">
			<th align="right" width="15%">资产转让(处置)附件</th>
			<td style="border-right: none" width="36%">
				<div id="fileQueue8" class="fileQueue" style="margin: 10px 0px 0px 10px;float: left">
					<input type="file" name="uploadify" id="otherUpload8"  class="upload"/>
					<a class="easyui-linkbutton" href="../file_resource/资产转让(处置)附件.docx" target="_blank" >资产转让(处置)附件</a>
					<a href="javascript:void(0);" onclick="" id="tip8" class="easyui-linkbutton" iconCls="icon-help" plain="true" ></a>
					<p style="color: #aaaaaa;width: auto">
						1、按住Ctrl可选择多个文件上传;<br/>
						2、可上传*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws类型文件<br/>
					</p>
				</div>
			</td>
			<td style="border-left: none" colspan="2">
				<c:forEach items="${resList}" var="res">
					<c:if test="${res.functionFlog==9}">
						<div><a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName}</a> <span style="cursor: pointer;" onclick="deleteFile(this,'${res.id}');"><img src="${ctx }/commons/themes/icons/cancel.png"/></span></div>
					</c:if>
				</c:forEach>
			</td>
		</tr>



		<tr>
			<th align="right" width="15%">其他资料</th>
			<td style="border-right: none" width="36%">
				<div id="fileQueue7" class="fileQueue" style="margin: 10px 0px 0px 10px;float: left">
					<input type="file" name="uploadify" id="otherUpload7"  class="upload"/>
					<a href="javascript:void(0);" onclick="" id="tip7" class="easyui-linkbutton" iconCls="icon-help" plain="true" title="其他相关资料"></a>
					<p style="color: #aaaaaa;width: auto">
						1、按住Ctrl可选择多个文件上传;<br/>
						2、可上传*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws类型文件<br/>
					</p>
				</div>
			</td>
			<td style="border-left: none" colspan="2">
				<c:forEach items="${resList}" var="res">
					<c:if test="${res.functionFlog==6}">
						<div><a class="easyui-linkbutton" href="javascript:showOpenFile('${ctx }','${res.id}',requestUrl);" >${res.oldName}</a> <span style="cursor: pointer;" onclick="deleteFile(this,'${res.id}');"><img src="${ctx }/commons/themes/icons/cancel.png"/></span></div>
					</c:if>
				</c:forEach>
			</td>
		</tr>
		</tbody>
	</table>
	<div align="center" style="margin-top: 25px;margin-bottom: 20px">
		<a href="javascript:void(0);" id="generateWorld"  class="easyui-linkbutton" iconCls="icon-chart" plain="true"><strong>生成PDF</strong></a>
		<a class="easyui-linkbutton" id="establishFile" href="javascript:void(0);">无</a><br/>
	</div>
</form>
<script type="text/javascript">

	$(function(){
		// parent.$('#addEntityBt').hide();
		var resIds = "";
		<c:forEach items="${resList}" var="res">
		resIds += ",${res.id}";
		</c:forEach>
		$('#budgetMenuData').val(resIds);


		/**
		 * 资产交易申报表
		 *
		 **/
		$("#otherUpload1").uploadify({ //资产权属证明
			'height'        : 27,
			'width'         : 80,
			'buttonText'    : '选择附件',
			'queueID': 'fileQueue1',//队列的ID
			'queueSizeLimit':5,// 附件附列长度
			'swf': '${ctx}/commons/js/uploadify/uploadify.swf',
			'uploader':'${ctx}/auction/business/upload;jsessionid=${pageContext.session.id}?functionFlag=2',// 上传时请求的后台处理的controller
			'cancelImg': '${ctx}/commons/js/uploadify/uploadify-cancel.png',
			'method':'post',
			'folder': '',
			'preventCaching' : true,
			'fileTypeExts' :'*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws',
			'auto': true,
			'multi': true,//是否可多选
			'removeCompleted' : false,
			'successTimeout' : 55555,
			'fileSizeLimit'  : 2048*50,
			'onUploadSuccess':function(file, data, response){
				$('#' + file.id).find('.data').html(' 上传完毕');
				$('#budgetMenuData').val($('#budgetMenuData').val() + "," + data);
				var cancel=$('.fileQueue .uploadify-queue-item[id="' + file.id + '"]').find(".cancel a");
				if (cancel) {
					cancel.attr("rel", data);
					cancel.click(function () {
						var cancelData = cancel.attr("rel");
						var  budgetMenuData = $('#budgetMenuData').val();
						var index = budgetMenuData.indexOf(","+cancel.attr("rel"))
						if(index != -1){
							budgetMenuData = budgetMenuData.replace(","+cancelData,"");
							$('#budgetMenuData').val(budgetMenuData);
						}
					});
				}
			},
			'onSelectError':function(file, errorCode, errorMsg){
				switch(errorCode) {
					case -110:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小超出系统限制的"+$('#file_upload').uploadify('settings','fileSizeLimit')+"大小！";
						this.queueData.errorMsg='所选文件大小超出系统限制!';
						break;
					case -120:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小异常！"
						this.queueData.errorMsg='所选文件大小异常!';
						break;
					case -130:
						//this.queueData.errorMsg="文件 ["+file.name+"] 类型不正确！"
						this.queueData.errorMsg='所选文件类型不正确!';
						break;
				}
			},
			'onCancel' : function(file){
				alert(file);
			}
		});


		/**
		 *内部决议（已备案）证明
		 *
		 **/
		$("#otherUpload2").uploadify({ //资产权属证明
			'height'        : 27,
			'width'         : 80,
			'buttonText'    : '选择附件',
			'queueID': 'fileQueue2',//队列的ID
			'queueSizeLimit':5,// 附件附列长度
			'swf': '${ctx}/commons/js/uploadify/uploadify.swf',
			'uploader':'${ctx}/auction/business/upload;jsessionid=${pageContext.session.id}?functionFlag=3',// 上传时请求的后台处理的controller
			'cancelImg': '${ctx}/commons/js/uploadify/uploadify-cancel.png',
			'method':'post',
			'folder': '',
			'preventCaching' : true,
			'fileTypeExts' :'*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws',
			'auto': true,
			'multi': true,//是否可多选
			'removeCompleted' : false,
			'successTimeout' : 55555,
			'fileSizeLimit'  : 2048*50,
			'onUploadSuccess':function(file, data, response){
				$('#' + file.id).find('.data').html(' 上传完毕');
				$('#budgetMenuData').val($('#budgetMenuData').val() + "," + data);
				var cancel=$('.fileQueue .uploadify-queue-item[id="' + file.id + '"]').find(".cancel a");
				if (cancel) {
					cancel.attr("rel", data);
					cancel.click(function () {
						var cancelData = cancel.attr("rel");
						var  budgetMenuData = $('#budgetMenuData').val();
						var index = budgetMenuData.indexOf(","+cancel.attr("rel"))
						if(index != -1){
							budgetMenuData = budgetMenuData.replace(","+cancelData,"");
							$('#budgetMenuData').val(budgetMenuData);
						}
					});
				}
			},
			'onSelectError':function(file, errorCode, errorMsg){
				switch(errorCode) {
					case -110:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小超出系统限制的"+$('#file_upload').uploadify('settings','fileSizeLimit')+"大小！";
						this.queueData.errorMsg='所选文件大小超出系统限制!';
						break;
					case -120:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小异常！"
						this.queueData.errorMsg='所选文件大小异常!';
						break;
					case -130:
						//this.queueData.errorMsg="文件 ["+file.name+"] 类型不正确！"
						this.queueData.errorMsg='所选文件类型不正确!';
						break;
				}
			},
			'onCancel' : function(file){
				alert(file);
			}
		});


		/**
		 *租赁房屋的清空情况
		 *
		 **/
		$("#otherUpload3").uploadify({
			'height'        : 27,
			'width'         : 80,
			'buttonText'    : '选择附件',
			'queueID': 'fileQueue3',//队列的ID
			'queueSizeLimit':5,// 附件附列长度
			'swf': '${ctx}/commons/js/uploadify/uploadify.swf',
			'uploader':'${ctx}/auction/business/upload;jsessionid=${pageContext.session.id}?functionFlag=4',// 上传时请求的后台处理的controller
			'cancelImg': '${ctx}/commons/js/uploadify/uploadify-cancel.png',
			'method':'post',
			'folder': '',
			'preventCaching' : true,
			'fileTypeExts' :'*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws',
			'auto': true,
			'multi': true,//是否可多选
			'removeCompleted' : false,
			'successTimeout' : 55555,
			'fileSizeLimit'  : 2048*50,
			'onUploadSuccess':function(file, data, response){
				$('#' + file.id).find('.data').html(' 上传完毕');
				$('#budgetMenuData').val($('#budgetMenuData').val() + "," + data);
				var cancel=$('.fileQueue .uploadify-queue-item[id="' + file.id + '"]').find(".cancel a");
				if (cancel) {
					cancel.attr("rel", data);
					cancel.click(function () {
						var cancelData = cancel.attr("rel");
						var  budgetMenuData = $('#budgetMenuData').val();
						var index = budgetMenuData.indexOf(","+cancel.attr("rel"))
						if(index != -1){
							budgetMenuData = budgetMenuData.replace(","+cancelData,"");
							$('#budgetMenuData').val(budgetMenuData);
						}
					});
				}
			},
			'onSelectError':function(file, errorCode, errorMsg){
				switch(errorCode) {
					case -110:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小超出系统限制的"+$('#file_upload').uploadify('settings','fileSizeLimit')+"大小！";
						this.queueData.errorMsg='所选文件大小超出系统限制!';
						break;
					case -120:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小异常！"
						this.queueData.errorMsg='所选文件大小异常!';
						break;
					case -130:
						//this.queueData.errorMsg="文件 ["+file.name+"] 类型不正确！"
						this.queueData.errorMsg='所选文件类型不正确!';
						break;
				}
			},
			'onCancel' : function(file){
				alert(file);
			}
		});



	/**
		 *解除协议书
		 *
		 **/
		$("#otherUpload4").uploadify({
			'height'        : 27,
			'width'         : 80,
			'buttonText'    : '选择附件',
			'queueID': 'fileQueue4',//队列的ID
			'queueSizeLimit':5,// 附件附列长度
			'swf': '${ctx}/commons/js/uploadify/uploadify.swf',
			'uploader':'${ctx}/auction/business/upload;jsessionid=${pageContext.session.id}?functionFlag=5',// 上传时请求的后台处理的controller
			'cancelImg': '${ctx}/commons/js/uploadify/uploadify-cancel.png',
			'method':'post',
			'folder': '',
			'preventCaching' : true,
			'fileTypeExts' :'*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws',
			'auto': true,
			'multi': true,//是否可多选
			'removeCompleted' : false,
			'successTimeout' : 55555,
			'fileSizeLimit'  : 2048*50,
			'onUploadSuccess':function(file, data, response){
				$('#' + file.id).find('.data').html(' 上传完毕');
				$('#budgetMenuData').val($('#budgetMenuData').val() + "," + data);
				var cancel=$('.fileQueue .uploadify-queue-item[id="' + file.id + '"]').find(".cancel a");
				if (cancel) {
					cancel.attr("rel", data);
					cancel.click(function () {
						var cancelData = cancel.attr("rel");
						var  budgetMenuData = $('#budgetMenuData').val();
						var index = budgetMenuData.indexOf(","+cancel.attr("rel"))
						if(index != -1){
							budgetMenuData = budgetMenuData.replace(","+cancelData,"");
							$('#budgetMenuData').val(budgetMenuData);
						}
					});
				}
			},
			'onSelectError':function(file, errorCode, errorMsg){
				switch(errorCode) {
					case -110:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小超出系统限制的"+$('#file_upload').uploadify('settings','fileSizeLimit')+"大小！";
						this.queueData.errorMsg='所选文件大小超出系统限制!';
						break;
					case -120:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小异常！"
						this.queueData.errorMsg='所选文件大小异常!';
						break;
					case -130:
						//this.queueData.errorMsg="文件 ["+file.name+"] 类型不正确！"
						this.queueData.errorMsg='所选文件类型不正确!';
						break;
				}
			},
			'onCancel' : function(file){
				alert(file);
			}
		});

		/**
		 *资产转让/处置承诺函
		 *
		 **/
		$("#otherUpload5").uploadify({
			'height'        : 27,
			'width'         : 80,
			'buttonText'    : '选择附件',
			'queueID': 'fileQueue5',//队列的ID
			'queueSizeLimit':5,// 附件附列长度
			'swf': '${ctx}/commons/js/uploadify/uploadify.swf',
			'uploader':'${ctx}/auction/business/upload;jsessionid=${pageContext.session.id}?functionFlag=7',// 上传时请求的后台处理的controller
			'cancelImg': '${ctx}/commons/js/uploadify/uploadify-cancel.png',
			'method':'post',
			'folder': '',
			'preventCaching' : true,
			'fileTypeExts' :'*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws',
			'auto': true,
			'multi': true,//是否可多选
			'removeCompleted' : false,
			'successTimeout' : 55555,
			'fileSizeLimit'  : 2048*50,
			'onUploadSuccess':function(file, data, response){
				$('#' + file.id).find('.data').html(' 上传完毕');
				$('#budgetMenuData').val($('#budgetMenuData').val() + "," + data);
				var cancel=$('.fileQueue .uploadify-queue-item[id="' + file.id + '"]').find(".cancel a");
				if (cancel) {
					cancel.attr("rel", data);
					cancel.click(function () {
						var cancelData = cancel.attr("rel");
						var  budgetMenuData = $('#budgetMenuData').val();
						var index = budgetMenuData.indexOf(","+cancel.attr("rel"))
						if(index != -1){
							budgetMenuData = budgetMenuData.replace(","+cancelData,"");
							$('#budgetMenuData').val(budgetMenuData);
						}
					});
				}
			},
			'onSelectError':function(file, errorCode, errorMsg){
				switch(errorCode) {
					case -110:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小超出系统限制的"+$('#file_upload').uploadify('settings','fileSizeLimit')+"大小！";
						this.queueData.errorMsg='所选文件大小超出系统限制!';
						break;
					case -120:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小异常！"
						this.queueData.errorMsg='所选文件大小异常!';
						break;
					case -130:
						//this.queueData.errorMsg="文件 ["+file.name+"] 类型不正确！"
						this.queueData.errorMsg='所选文件类型不正确!';
						break;
				}
			},
			'onCancel' : function(file){
				alert(file);
			}
		});


	/**
		 *评估报告
		 *
		 **/
		$("#otherUpload6").uploadify({
			'height'        : 27,
			'width'         : 80,
			'buttonText'    : '选择附件',
			'queueID': 'fileQueue6',//队列的ID
			'queueSizeLimit':5,// 附件附列长度
			'swf': '${ctx}/commons/js/uploadify/uploadify.swf',
			'uploader':'${ctx}/auction/business/upload;jsessionid=${pageContext.session.id}?functionFlag=8',// 上传时请求的后台处理的controller
			'cancelImg': '${ctx}/commons/js/uploadify/uploadify-cancel.png',
			'method':'post',
			'folder': '',
			'preventCaching' : true,
			'fileTypeExts' :'*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws',
			'auto': true,
			'multi': true,//是否可多选
			'removeCompleted' : false,
			'successTimeout' : 55555,
			'fileSizeLimit'  : 2048*50,
			'onUploadSuccess':function(file, data, response){
				$('#' + file.id).find('.data').html(' 上传完毕');
				$('#budgetMenuData').val($('#budgetMenuData').val() + "," + data);
				var cancel=$('.fileQueue .uploadify-queue-item[id="' + file.id + '"]').find(".cancel a");
				if (cancel) {
					cancel.attr("rel", data);
					cancel.click(function () {
						var cancelData = cancel.attr("rel");
						var  budgetMenuData = $('#budgetMenuData').val();
						var index = budgetMenuData.indexOf(","+cancel.attr("rel"))
						if(index != -1){
							budgetMenuData = budgetMenuData.replace(","+cancelData,"");
							$('#budgetMenuData').val(budgetMenuData);
						}
					});
				}
			},
			'onSelectError':function(file, errorCode, errorMsg){
				switch(errorCode) {
					case -110:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小超出系统限制的"+$('#file_upload').uploadify('settings','fileSizeLimit')+"大小！";
						this.queueData.errorMsg='所选文件大小超出系统限制!';
						break;
					case -120:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小异常！"
						this.queueData.errorMsg='所选文件大小异常!';
						break;
					case -130:
						//this.queueData.errorMsg="文件 ["+file.name+"] 类型不正确！"
						this.queueData.errorMsg='所选文件类型不正确!';
						break;
				}
			},
			'onCancel' : function(file){
				alert(file);
			}
		});


		/**
		 *其他资料
		 *
		 **/
		$("#otherUpload7").uploadify({
			'height'        : 27,
			'width'         : 80,
			'buttonText'    : '选择附件',
			'queueID': 'fileQueue7',//队列的ID
			'queueSizeLimit':5,// 附件附列长度
			'swf': '${ctx}/commons/js/uploadify/uploadify.swf',
			'uploader':'${ctx}/auction/business/upload;jsessionid=${pageContext.session.id}?functionFlag=6',// 上传时请求的后台处理的controller
			'cancelImg': '${ctx}/commons/js/uploadify/uploadify-cancel.png',
			'method':'post',
			'folder': '',
			'preventCaching' : true,
			'fileTypeExts' :'*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws',
			'auto': true,
			'multi': true,//是否可多选
			'removeCompleted' : false,
			'successTimeout' : 55555,
			'fileSizeLimit'  : 2048*50,
			'onUploadSuccess':function(file, data, response){
				$('#' + file.id).find('.data').html(' 上传完毕');
				$('#budgetMenuData').val($('#budgetMenuData').val() + "," + data);
				var cancel=$('.fileQueue .uploadify-queue-item[id="' + file.id + '"]').find(".cancel a");
				if (cancel) {
					cancel.attr("rel", data);
					cancel.click(function () {
						var cancelData = cancel.attr("rel");
						var  budgetMenuData = $('#budgetMenuData').val();
						var index = budgetMenuData.indexOf(","+cancel.attr("rel"))
						if(index != -1){
							budgetMenuData = budgetMenuData.replace(","+cancelData,"");
							$('#budgetMenuData').val(budgetMenuData);
						}
					});
				}
			},
			'onSelectError':function(file, errorCode, errorMsg){
				switch(errorCode) {
					case -110:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小超出系统限制的"+$('#file_upload').uploadify('settings','fileSizeLimit')+"大小！";
						this.queueData.errorMsg='所选文件大小超出系统限制!';
						break;
					case -120:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小异常！"
						this.queueData.errorMsg='所选文件大小异常!';
						break;
					case -130:
						//this.queueData.errorMsg="文件 ["+file.name+"] 类型不正确！"
						this.queueData.errorMsg='所选文件类型不正确!';
						break;
				}
			},
			'onCancel' : function(file){
				alert(file);
			}
		});


		/**
		 *资产转让(处置)附件
		 *
		 **/
		$("#otherUpload8").uploadify({
			'height'        : 27,
			'width'         : 80,
			'buttonText'    : '选择附件',
			'queueID': 'fileQueue8',//队列的ID
			'queueSizeLimit':5,// 附件附列长度
			'swf': '${ctx}/commons/js/uploadify/uploadify.swf',
			'uploader':'${ctx}/auction/business/upload;jsessionid=${pageContext.session.id}?functionFlag=9',// 上传时请求的后台处理的controller
			'cancelImg': '${ctx}/commons/js/uploadify/uploadify-cancel.png',
			'method':'post',
			'folder': '',
			'preventCaching' : true,
			'fileTypeExts' :'*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws',
			'auto': true,
			'multi': true,//是否可多选
			'removeCompleted' : false,
			'successTimeout' : 55555,
			'fileSizeLimit'  : 2048*50,
			'onUploadSuccess':function(file, data, response){
				$('#' + file.id).find('.data').html(' 上传完毕');
				$('#budgetMenuData').val($('#budgetMenuData').val() + "," + data);
				var cancel=$('.fileQueue .uploadify-queue-item[id="' + file.id + '"]').find(".cancel a");
				if (cancel) {
					cancel.attr("rel", data);
					cancel.click(function () {
						var cancelData = cancel.attr("rel");
						var  budgetMenuData = $('#budgetMenuData').val();
						var index = budgetMenuData.indexOf(","+cancel.attr("rel"))
						if(index != -1){
							budgetMenuData = budgetMenuData.replace(","+cancelData,"");
							$('#budgetMenuData').val(budgetMenuData);
						}
					});
				}
			},
			'onSelectError':function(file, errorCode, errorMsg){
				switch(errorCode) {
					case -110:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小超出系统限制的"+$('#file_upload').uploadify('settings','fileSizeLimit')+"大小！";
						this.queueData.errorMsg='所选文件大小超出系统限制!';
						break;
					case -120:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小异常！"
						this.queueData.errorMsg='所选文件大小异常!';
						break;
					case -130:
						//this.queueData.errorMsg="文件 ["+file.name+"] 类型不正确！"
						this.queueData.errorMsg='所选文件类型不正确!';
						break;
				}
			},
			'onCancel' : function(file){
				alert(file);
			}
		});


		/**
		 *租赁附件
		 *
		 **/
		$("#otherUpload9").uploadify({
			'height'        : 27,
			'width'         : 80,
			'buttonText'    : '选择附件',
			'queueID': 'fileQueue9',//队列的ID
			'queueSizeLimit':5,// 附件附列长度
			'swf': '${ctx}/commons/js/uploadify/uploadify.swf',
			'uploader':'${ctx}/auction/business/upload;jsessionid=${pageContext.session.id}?functionFlag=10',// 上传时请求的后台处理的controller
			'cancelImg': '${ctx}/commons/js/uploadify/uploadify-cancel.png',
			'method':'post',
			'folder': '',
			'preventCaching' : true,
			'fileTypeExts' :'*.rar;*.zip;*.doc;*.docx;*.xls;*.xlsx;*.jpg;*.png;*.gif;*.bmp;*.pdf;*.dwg;*.DXF;*.DWT;*.dws',
			'auto': true,
			'multi': true,//是否可多选
			'removeCompleted' : false,
			'successTimeout' : 55555,
			'fileSizeLimit'  : 2048*50,
			'onUploadSuccess':function(file, data, response){
				$('#' + file.id).find('.data').html(' 上传完毕');
				$('#budgetMenuData').val($('#budgetMenuData').val() + "," + data);
				var cancel=$('.fileQueue .uploadify-queue-item[id="' + file.id + '"]').find(".cancel a");
				if (cancel) {
					cancel.attr("rel", data);
					cancel.click(function () {
						var cancelData = cancel.attr("rel");
						var  budgetMenuData = $('#budgetMenuData').val();
						var index = budgetMenuData.indexOf(","+cancel.attr("rel"))
						if(index != -1){
							budgetMenuData = budgetMenuData.replace(","+cancelData,"");
							$('#budgetMenuData').val(budgetMenuData);
						}
					});
				}
			},
			'onSelectError':function(file, errorCode, errorMsg){
				switch(errorCode) {
					case -110:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小超出系统限制的"+$('#file_upload').uploadify('settings','fileSizeLimit')+"大小！";
						this.queueData.errorMsg='所选文件大小超出系统限制!';
						break;
					case -120:
						//this.queueData.errorMsg="文件 ["+file.name+"] 大小异常！"
						this.queueData.errorMsg='所选文件大小异常!';
						break;
					case -130:
						//this.queueData.errorMsg="文件 ["+file.name+"] 类型不正确！"
						this.queueData.errorMsg='所选文件类型不正确!';
						break;
				}
			},
			'onCancel' : function(file){
				alert(file);
			}
		});



	});


	function deleteFile(v,resId){
		var parent = v.parentNode;
		parent.parentNode.removeChild(parent);
		var  budgetMenuData = $('#budgetMenuData').val();
		var index = budgetMenuData.indexOf(","+resId)
		if(index != -1){
			budgetMenuData = budgetMenuData.replace(","+resId,"");
			$('#budgetMenuData').val(budgetMenuData);
		}
		//删除数据库中的文件信息
		$.ajax({
			type : "post",
			url : "${ctx}/auction/business/deleteFile?resId="+resId,
			data : top.$("#addProjectsDataForm").serialize(),
			success : function(data){

			},
			error : function(data){
				alert("错误");
			}
		});
	}

	/*是否报名击事件*/
	function isApply(isApply) {
		if(isApply==1){//报名,显示
			$("#apply").removeClass("st");


		}else{//不报名,不显示
			$("#apply").addClass("st");
			$("#entryStart").removeAttr("required");
			$("#entryEnd").removeAttr("required");

		}
	}

 //  根据项目类型，显示要填的内容
	$("#catagoryId").combobox({onSelect : function(){
		var value = $("#catagoryId").combobox("getValue") ;
		if(value=="540d5cef8b0004f000000056a29c3a02"){//处置类
			$("#otherRequire_stuff").removeClass("st");
			$("#otherRequire_rent").addClass("st");
			$("#otherRequire_rent2").addClass("st");
			$("#fileQueue5_tr").removeClass("st");
			$("#fileQueue6_tr").removeClass("st");
			$("#fileQueue3_tr").addClass("st");
			$("#fileQueue4_tr").addClass("st");
			$("#fileQueue9_tr").addClass("st");
			$("#fileQueue8_tr").removeClass("st");

		}else if(value=="540d5cef8b0004f000000056a29c3a03"){//租赁
			$("#otherRequire_rent").removeClass("st");
			$("#otherRequire_rent2").removeClass("st");
			$("#otherRequire_stuff").addClass("st");
			$("#fileQueue5_tr").addClass("st");
			$("#fileQueue6_tr").addClass("st");
			$("#fileQueue3_tr").removeClass("st");
			$("#fileQueue4_tr").removeClass("st");
			$("#fileQueue9_tr").removeClass("st");
			$("#fileQueue8_tr").addClass("st");

		}
	}
	});

	//生成world文档
	$("#generateWorld").click(function(){
		var id=$("#id").val();
		if(!top.$('#addProjectsDataForm').form('validate')){//表单校验是否通过
			$.messager.alert('提示',"请信息填写完整后点击生成PDF!",'info',function(){});
			return;
		}
		$.ajax({
			type: "post",
			url:  "${ctx}/auction/business/generateWord",
			data:top.$("#addProjectsDataForm").serialize(),
			success: function(data,res){
				var result = $.trim(res.responseText);
				if(result == "unLogin"){
					var msn = ''||i18n[''];
					msn = msn||i18n[result];
					if(msn != undefined){
						$.messager.alert('提示',msn,'info',function(){top.location='${ctx}/manage';});
						return ;
					}
				}
				$.messager.alert('提示',"生成成功！",'info');
				var result=eval("("+data+")");
				$.each(result,function(index,res){
					if(res.functionFlog==1){
						$("#establishFile").attr("href","javascript:showOpenFile('ctx','"+res.id+"','"+requestUrl+"');");
						$("#establishFile").html(res.oldName);
					}
				});
			},
			error: function(res){
				$.messager.alert('提示',i18n.requestError,'error');
			}
		});
	});





</script>